#ifndef SEGMENTVIEWERWIDGET_H
#define SEGMENTVIEWERWIDGET_H

#include <qgl.h>
//#include <QtOpenGL/QtOpenGL>
#include "SegmentContainer.hpp"

class SegmentViewerWidget : public QGLWidget
{
    Q_OBJECT
public:

        //----------------------------------------------------------------------
        // Structure
        //----------------------------------------------------------------------
	typedef std::list< ImageAnalysis::SegmentContainer* > TSegmentContainerList;

        //----------------------------------------------------------------------
        // Constructeur
        //----------------------------------------------------------------------
        SegmentViewerWidget ( TSegmentContainerList* containers );

        //----------------------------------------------------------------------
        // Destructeur
        //----------------------------------------------------------------------
        virtual ~SegmentViewerWidget();

public slots:

protected:

        //----------------------------------------------------------------------
        //
        //----------------------------------------------------------------------
        void initializeGL();

        //----------------------------------------------------------------------
        //
        //----------------------------------------------------------------------
        void resizeGL( int width, int height );

        //----------------------------------------------------------------------
        //
        //----------------------------------------------------------------------
        void paintGL();

	//----------------------------------------------------------------------
        //
        //----------------------------------------------------------------------
        TSegmentContainerList* currentSegmentContainers;
};


#endif //SEGMENTVIEWERWIDGET_H
